package com.zrrd.learn.chapter08面向对象.objectorientedpolymorphic;

/**
 * 动物测试类
 *
 * @author wrn
 * @version 1.0
 * @date 2023/7/28 8:43
 */

public class AnimalsTest {

    public static void main(String[] args) {
        Animals a1 = new Animals();
        a1.eat();
        a1.run();

        Chicken c1 =new Chicken();
        c1.run();

        Donkey d1=new Donkey();
        d1.eat();
    }

}
